package caiziyou.com.designpattern.observer.improve;

public class Client {

	public static void main(String[] args) {
		CurrentConditions c1 = new CurrentConditions("百度");
		CurrentConditions c2 = new CurrentConditions("新浪");
		
		WeatherData weatherData = new WeatherData();
		weatherData.registerObserver(c1);
		weatherData.registerObserver(c2);
		weatherData.setData(1.1f, 1.1f, 1.5f);
	}
}
